home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Night Owl 6
/
Night Owl's Shareware - PDSI-006 - Night Owl Corp (1990).iso
/
027a
/
springb.zip
/
TEST.SRC
< prev
Wrap
Text File
|
1991-10-26
|
2KB
|
57 lines
* Test Program for SpringBoard
* Copyright (c) 1991 SoundView Data Systems - All Rights Reserved
*
* SpringBoard supports the following functions.
*
* CLEAR()
* SPRINT( nRow, nCol, cTEXT )
* SINGLEBOX( nTopLeftRow, nTopLeftCol, nBottomRightRow, nBottomRightCol )
* DOUBLEBOX( nTopLeftRow, nTopLeftCol, nBottomRightRow, nBottomRightCol )
* SETCOLOR( cColorString )
* SETMONO( cColorString )
* FILL( nTopLeftRow, nTopLeftCol, nBottomRightRow, nBottomRightCol, cChar )
* RUN( cProgname [args] )
*
* Notes:
* All arguments are required - there are no optional parameters.
* Character type arguments should be delimited with '' or "". See the
* sample source below for examples.
* Colors should be passed as standard xBase color strings (in quotes).
* Blank lines and lines starting with '*' are treated as comments.
* The SpringBoard runtime will use the color defined by SETCOLOR() or SETMONO()
* depending upon the active display mode detected at runtime.
* The RUN command will search the current working directory first, and then
* will search all directories defined in the PATH variable (if one exists).
* A target filespec (and optional arguments) passed on the command line
* will supercede any filespec and arguments that were originally
* compiled into the launcher.
*
***---set up the backdrop colors
clear()
setcolor('w/b')
setmono('n/w')
**---make a textured backdrop
fill(0,0,24,79,'▒')
**---underlay a shadow before drawing the window
setcolor('n/b')
fill(10,10,14,69,'▒')
**---clear out a window and add a border
fill(9,9,13,68,' ')
setcolor('g+/b')
doublebox(9,9,13,68)
**---display a "Loading..." message
setcolor('w+/b')
sprint(11,25,' Loading your program now... ')
**---exec the target program, with some dummy command line arguments
run('exectest arg1 arg2')
**---if the exec is successful, we'll never return to execute this line!
setcolor('w+/r')
sprint(11,16," Whoops!!! Can't run your program. Sorry. ")
*---eof